package messages;

import java.io.Serializable;
import java.util.ArrayList;

public class ServerClientChatMessage implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 12L;
	public static final int MESSAGE = 1;
	public static final int SERVER_LIST = 2;
	public static final int ConnectionAccepded = 3;
	public static final int TryAnotherServer = 4;
	public static final int History = 4;

	private int messageType = 0;
	private ArrayList<ServerParameters> ServersList = new ArrayList<ServerParameters>();
	private String Message = "";

	public ServerClientChatMessage(String Message, int messageType) {
		this.Message = Message;
		this.messageType = messageType;
	}

	public ServerClientChatMessage(ArrayList<ServerParameters> serverParameters) {
		this.ServersList = serverParameters;
		this.messageType = SERVER_LIST;
	}

	public int getMessageType() {
		return messageType;
	}

	public void setMessageType(int messageType) {
		this.messageType = messageType;
	}

	public ArrayList<ServerParameters> getServerParameters() {
		return ServersList;
	}

	public void setServerParameters(ArrayList<ServerParameters> serverParameters) {
		this.ServersList = serverParameters;
	}

	public String getMessage() {
		return Message;
	}

	public void setMessage(String message) {
		Message = message;
	}
}
